﻿
namespace Metro.Kashikoi.Common.ExceptionHandling
{
    /// <summary>
    /// Thrown when authentication failed or authorization failed.
    /// </summary>
    public class SecurityException : AppException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SecurityException"/> class.
        /// </summary>
        public SecurityException()
            : base()
        { }

        /// <summary>
        /// Gets a message that describes the current exception.
        /// </summary>
        /// <returns>The error message that explains the reason for the exception, or an empty string("").</returns>
        public override string Message
        {
            get
            {
                return "Unknown Username or Incorrect Password or Session Timeout.";
            }
        }
    }
}
